Properties of the Relation Attribute |
|
A relation attribute represents the relationship between two tables in the database. To create a BusObject, define values for the properties described in the following table.
Property |
Description |
|---|---|
<name> |
Contains the name of the relation. |
<type> |
Contains the name of the relational class. |
occ |
Represents the occurrence of the attribute's relations. The acceptable values are:
|
<match> |
Defines the relationship between the tables, based on the primary key and the foreign key. <attribute type="relation">
<name>Orders</name>
<type occ="*">Orders</type>
<aggregation>false</aggregation>
<match>
<local>
<attribute>CustomerID</attribute>
</local>
<remote>
<attribute>CustomerID</attribute>
</remote>
</match>
</attribute>
The attribute element in<match><local>contains the name of the primary key of the current class. The attribute element in<match><remote>contains the foreign key to cross-refer the relational table. |
<local><attribute> |
Contains the name of the primary key. |
<remote><attribute> |
Contains the name of the foreign key. |